package study08;

interface Phone1 {
        void receiveMessages();

        void call();
        }

interface SmartPhone extends Phone1 {
    void faceTime();
}

class HWPhone implements SmartPhone {
    public void useHWUI() {
        System.out.println("使用华为");
    }

    @Override
    public void receiveMessages() {
        System.out.println("接收短信");
    }

    @Override
    public void call() {
        System.out.println("语言通话");
    }

    @Override
    public void faceTime() {
        System.out.println("视频通话");
    }
}

public class Test07 {
    public static void main(String[] args) {
        HWPhone hwPhone = new HWPhone();

        hwPhone.receiveMessages();
        hwPhone.call();
        hwPhone.faceTime();
        hwPhone.useHWUI();
    }
}
